package com.ziq.zcamp.bean.user

import com.ziq.zcamp.proguard.ProguardKeep

class UserInfo : ProguardKeep {
    var id :Int? = null
    var uid :Int? = null
    var nick_name :String? = null
    var header_img :String? = null
    var phone:String? = null
    var email:String? = null


    var description :String? = null
    var gender :Int? = null
    var birth :Long? = null
    var bg_url :String? = null //背景图
    var location :String? = null
    var location_code :String? = null
    var country_code :String? = null

    var is_post_admin:Boolean ?= null //是否是帖子超管
    var is_merchant:Boolean? = null	//弃用 bool	是否商户
    var merchant_type:Int ?= null // 弃用 商户类型：1营地商户,2活动商户,3综合商户。3.14 版本改为只有 2，3 有效， 类型3取代类型1
    var m_type : Int ?= null //商户类型 1营地商户,2活动商户
    var merchant_id:Int? = null	//int	商会id
    var campid:Int? = null	//int	营地id
    var staff_type:Int? = null// 弃用 员工类型,1表示超级管理员，2表示普通员工,0无身份 , 3营长
    var authorities: List<Int>? = null //弃用 员工权限，1-订单管理，2-商品管理，3-客服

    //3.14营地商户信息改版后新增
    var camps_info: List<UserCampInfo>? = null //营地信息
    //3.16活动商户管理改版后新增
    var act_info: UserActInfo ?= null



    var camping_count:Int ?= null//露营次数
    var ip_locate:String ?= null//ip归属地

    override fun toString(): String {
        return "UserInfo(uid=$id, nick=$nick_name, description=$description, portrait=$header_img, gender=$gender, birth=$birth, bg_url=$bg_url, location=$location, location_code=$location_code, country_code=$country_code, is_merchant=$is_merchant, merchant_type=$merchant_type, campid=$campid, phone=$phone, staff_type=$staff_type, authorities=$authorities)"
    }
}